home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 7
/
Aminet 7 - August 1995.iso
/
Aminet
/
text
/
hyper
/
ADtoHT2_1.lha
/
Source.lha
/
MyLib.lha
/
string
/
stpcpy.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-04-09
|
354 b
|
16 lines
#include <string.h>
/**************************************************************************/
char *(stpcpy)(char *Dest, const char *Source)
{
#if defined(__GNUC__) && defined(__OPTIMIZE__)
return __inlined_stpcpy(Dest,Source);
#else
while ((*Dest++=*Source++))
;
return Dest-1;
#endif /* defined(__GNUC__) && defined(__OPTIMIZE__) */
}